import request from '@/utils/request'

// 获取站点下拉列表
export function getSiteList() {
  return request({
    url: '/dispatch/system/dispatchTableMonitor/system/monitor/table/site',
    method: 'get'
  })
}

// 根据站点id获取监测量下拉列表
export function getMonitoringListBySite(params) {
  return request({
    url: '/dispatch/system/dispatchTableMonitor/system/monitor/table/monitoring',
    method: 'get',
    params
  })
}

// 获取表格监控列表
export function getTableMonitorList(params) {
  return request({
    url: '/dispatch/system/dispatchTableMonitor/system/monitor/table',
    method: 'get',
    params
  })
}

// 导出表格监控数据
export function exportTableMonitor(params) {
  return request({
    url: '/dispatch/system/dispatchTableMonitor/system/monitor/table/export',
    method: 'get',
    params,
    responseType: 'blob'
  })
}